package com.burstly.lib.component.networkcomponent.inmobi;

import android.content.Context;
import android.content.pm.PackageManager.NameNotFoundException;
import com.burstly.lib.component.IBurstlyAdaptor;
import com.burstly.lib.component.networkcomponent.AbstractAdaptorFactory;
import com.burstly.lib.util.ManifestValidator;
import com.burstly.lib.util.ManifestValidator.ValidationResults;
import java.util.Arrays;
import java.util.List;

public class InmobiAdaptorFactory extends AbstractAdaptorFactory
{
  private static final String FULL_CLASS_NAME = "com.inmobi.androidsdk.IMAdView";
  private static final List<String> INMOBI_MANDATORY_ACTIVITIES = Arrays.asList(new String[] { "com.inmobi.androidsdk.IMBrowserActivity" });
  private static final List<String> INMOBI_MANDATORY_PERMISSIONS = Arrays.asList(new String[] { "android.permission.INTERNET", "android.permission.ACCESS_NETWORK_STATE" });
  private static final List<String> INMOBI_OPTIONAL_PERMISSIONS = Arrays.asList(new String[] { "android.permission.ACCESS_COARSE_LOCATION", "android.permission.ACCESS_FINE_LOCATION", "android.permission.CALL_PHONE", "android.permission.ACCESS_WIFI_STATE", "android.permission.VIBRATE", "android.permission.RECORD_AUDIO", "android.permission.WRITE_EXTERNAL_STORAGE" });
  private static final String NETWORK_NAME = "inmobi";

  public InmobiAdaptorFactory()
  {
    super("com.inmobi.androidsdk.IMAdView", InmobiAdaptorFactory.class.getSimpleName());
  }

  protected IBurstlyAdaptor createInstance(Context paramContext, String paramString)
  {
    return new InmobiAdaptor(paramContext, paramString);
  }

  public ManifestValidator.ValidationResults validateManifest()
    throws PackageManager.NameNotFoundException
  {
    ManifestValidator.ValidationResults localValidationResults = ManifestValidator.customValidate(INMOBI_MANDATORY_ACTIVITIES, INMOBI_MANDATORY_PERMISSIONS, INMOBI_OPTIONAL_PERMISSIONS);
    localValidationResults.setNetworkName("inmobi");
    return localValidationResults;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.inmobi.InmobiAdaptorFactory
 * JD-Core Version:    0.6.2
 */